//
//  User.m
//  HWFinal
//
//  Created by student on 2021/12/2.
//  Copyright © 2021 demo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"

@implementation User

-(User*)initWithID: (NSString*) u_id
           andName: (NSString*) name
       andPassword: (NSString*) password
           andHead: (UIImage*) head_img
          andEmail: (NSString*) email
          andphone: (NSString*) phone
          andHobby: (NSString*) hobby
        andContent: (NSString*) content
{
    self = [super init];
    
    self.u_id = u_id;
    self.name = name;
    self.password = password;
    self.head_img = head_img;
    self.email = email;
    self.phone = phone;
    self.hobby = hobby;
    self.content = content;
    
    return self;
}

-(User*)initWithID: (NSString*) u_id
           andName: (NSString*) name
           andHead: (UIImage*) head_img
          andEmail: (NSString*) email
          andphone: (NSString*) phone
          andHobby: (NSString*) hobby
        andContent: (NSString*) content
{
    self = [super init];
    
    self.u_id = u_id;
    self.name = name;
    self.password = nil;
    self.head_img = head_img;
    self.email = email;
    self.phone = phone;
    self.hobby = hobby;
    self.content = content;
    
    return self;
}

@end
